package com.changfen.feign;

import com.changfen.Result;
import com.changfen.dto.OrderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author changfeng.chen@things-matrix.com
 * @date 2022/9/21 17:26
 **/
@FeignClient(name = "provider")
public interface OrderClient  {
    @PostMapping("/order/add")
    Result<Void> addOrder(@RequestBody OrderDto orderDto);

    @PostMapping("/order/tccAdd")
    Result<Void> addTccOrder(@RequestBody OrderDto orderDto);


    @PostMapping("/order/update")
    Result<Void> updateOrder(@RequestBody OrderDto orderDto);
}
